﻿using System;
using System.Collections;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace CaroLibraly
{
    public interface IServer
    {
        bool Connected { get; }
        ArrayList ListPlayer();
        ArrayList ListRoom();

        void JoinServer(Player pl);
        void LeaveServer(Player pl);

        void CreateRoom(Room r);
        bool JoinRoom(Room r, Player pl);
        void RemoveRoom(Room r);
    }
}
